import cv2
img = cv2.imread('tutu111.jpg')
rows = len(img)
cols = len(img[0])
center = (rows/2,cols/2)
M = cv2.getRotationMatrix2D(center,30,0.8)
dst = cv2.warpAffine(img,M,(cols,rows))
cv2.imshow('Input',img)
cv2.imshow('Rotaste',dst)
cv2.waitKey()
cv2.destroyAllWindows()